package com.gateway.dao;

import com.gateway.entity.GatewayEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2022/4/28
 **/

@Mapper
public interface GatewayMapper {
    /**
     * 获取所有配置
     * @return list
     */
    List<GatewayEntity> getAllGatewayConfig();

    /**
     * 更新gateway配置
     * @param gatewayEntity 路由对象
     * @return int
     */
    Integer updateGatewayConfig(@Param("entity") GatewayEntity gatewayEntity);

}
